package com.zrf.gulimall.product.dao;

import com.zrf.gulimall.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrf.gulimall.product.vo.web.SpuItemAttrGroupVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author zrf
 * @email 120662332@qq.com
 * @date 2021-01-23 16:07:19
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

	/**
	 * 根据spuId和分类id查询信息
	 * @param spuId
	 * @param catalogId
	 * @return
	 */
	List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}
